namespace = mye
#0010性奴隶
#0011情人
#0012灵魂伴侣
#0013监护人
#0014敌妻
#0015妾
#0016男女囚
# yearly pulse to impregnate sex slaves
mye.0010 = {
	hidden = yes

#	trigger = { carnss_has_sex_slave_trigger = yes }

	immediate = {
		if = {
			limit = {
				is_male = yes
			}
			every_relation = {
				type = slave
				limit = { 
				is_female = yes
				fertility > 0
				has_trait = beauty_good
				 }
				add_to_list = sexed_slaves
			}
#			save_scope_as = father
			every_in_list = {
				list = sexed_slaves
				save_scope_as = mothers
				carn_had_sex_with_effect = {
					CHARACTER_1 = scope:root
					CHARACTER_2 = scope:mothers
					C1_PREGNANCY_CHANCE = carnx_pregnancy_chance_value
					C2_PREGNANCY_CHANCE = carnx_pregnancy_chance_value
					STRESS_EFFECTS = no
					DRAMA = no
				}
				
				
				}
			
		}
	}
}

mye.0016 = {
	hidden = yes

	immediate = {
		save_scope_as = cucker
		if = {
			limit = {
				is_male = yes
				fertility > 0
				NOR = { has_trait = chaste is_imprisoned = yes}
			}
			#root = { save_scope_as = cucker }
			add_gold = 1
			every_prisoner = {
				limit = {
				NOT = {is_close_or_extended_family_of = scope:cucker}
				is_female = yes
				fertility > 0
				has_trait = beauty_good
				}
				add_to_list = potential_sexed_prisoner1
			 }

			every_prisoner = {
				limit = { is_male = yes}
				every_parent = {
					limit = {
						NOT = {is_close_or_extended_family_of = scope:cucker}
						is_female = yes
						has_trait = beauty_good 
						fertility  > 0
					}
					add_to_list = potential_sexed_prisoner2
				} 
				every_child = {
					limit = {
						NOT = {is_close_or_extended_family_of = scope:cucker}
						is_female = yes
						has_trait = beauty_good 
						fertility  > 0
					}
					add_to_list = potential_sexed_prisoner2
				}
				every_spouse = {
					limit = {
						NOT = {is_close_or_extended_family_of = scope:cucker}
						is_female = yes
						has_trait = beauty_good 
						fertility  > 0
					}
					add_to_list = potential_sexed_prisoner2
				}
				every_consort = {
					limit = {
						NOT = {is_close_or_extended_family_of = scope:cucker}
						is_female = yes
						has_trait = beauty_good 
						fertility  > 0
					}
					add_to_list = potential_sexed_prisoner2
				}
				
			}

			
			every_in_list = {
				list = potential_sexed_prisoner1
				save_scope_as = mothers1

				#scope:mothers160 = {
						#make_pregnant = {
						#		father = root
						#}
				#}
				
				scope:cucker = {
					carn_sex_scene_character_is_giving_player_effect = yes
					carn_sex_scene_is_consensual_effect = yes
					carn_sex_scene_is_vaginal_effect = yes
					carn_sex_scene_is_cum_inside_effect = yes
					carn_sex_scene_no_drama_effect = yes
					carn_had_sex_with_effect_v2 = {
						PARTNER = scope:mothers1
					}
					carn_rape_effect_v2 = {
						VICTIM = scope:mothers1
					}
				#	carn_had_sex_with_effect = {
				#		CHARACTER_1 = scope:cucker
				#		CHARACTER_2 = scope:mothers1
				#		C1_PREGNANCY_CHANCE = 30
				#		C2_PREGNANCY_CHANCE = 30
				#		DRAMA = no
				#	}
					
				}



				
			}
			
			every_in_list = {
				list = potential_sexed_prisoner2
				save_scope_as = mothers2

				#scope:mothers16 = {
						#make_pregnant = {
						#		father = root
						#}
				#}

				scope:cucker = {		
					carn_sex_scene_character_is_giving_player_effect = yes
					carn_sex_scene_is_consensual_effect = yes
					carn_sex_scene_is_vaginal_effect = yes
					carn_sex_scene_is_cum_inside_effect = yes
					carn_sex_scene_no_drama_effect = yes
					carn_had_sex_with_effect_v2 = {
						PARTNER = scope:mothers2
					}
					carn_rape_effect_v2 = {
						VICTIM = scope:mothers2	
					}
					#carn_had_sex_with_effect = {
					#	CHARACTER_1 = scope:cucker
					#	CHARACTER_2 = scope:mothers1
					#	C1_PREGNANCY_CHANCE = 30
					#	C2_PREGNANCY_CHANCE = 30
					#	DRAMA = no
					#}
				}

				
				
				
				
			}
		}
	}}



























mye.0011 = {
	hidden = yes

	immediate = {
		if = {
			limit = {
				is_male = yes
			}
			every_relation = {
				type =  lover
				add_to_list = sexed_lover
			}
			save_scope_as = father1
			every_in_list = {
				list = sexed_lover
				save_scope_as = mothers1
				show_as_tooltip = {
				carn_had_sex_with_effect = {
					CHARACTER_1 = scope:father1
					CHARACTER_2 = scope:mothers1
					#PREGNANCY_CHANCE = carn_sex_pregnancy_chance
					C1_PREGNANCY_CHANCE = pregnancy_chance
					C2_PREGNANCY_CHANCE = pregnancy_chance
					STRESS_EFFECTS = no
					DRAMA = yes
				}}
			}
		}
	}
}

mye.0012 = {
	hidden = yes

	immediate = {
		if = {
			limit = {
				is_male = yes
			}
			every_relation = {
				type = soulmate
				add_to_list = sexed_soulmate
			}
			save_scope_as = father2
			every_in_list = {
				list = sexed_soulmate
				save_scope_as = mothers2
				show_as_tooltip = {
				carn_had_sex_with_effect = {
					CHARACTER_1 = scope:father2
					CHARACTER_2 = scope:mothers2
					#PREGNANCY_CHANCE = carn_sex_pregnancy_chance
					C1_PREGNANCY_CHANCE = pregnancy_chance
					C2_PREGNANCY_CHANCE = pregnancy_chance
					STRESS_EFFECTS = no
					DRAMA = yes
				}}
			}
		}
	}
}


mye.0013 = {
	hidden = yes

	immediate = {
		if = {
			limit = {
				is_male = yes
			}
			every_relation = {
				type = ward
				limit = { 
				is_female = yes 
				age >= 12
				}
				add_to_list = sexed_ward
			}
			save_scope_as = father3
			every_in_list = {
				list = sexed_ward
				save_scope_as = mothers3
				show_as_tooltip = {
				carn_had_sex_with_effect = {
					CHARACTER_1 = scope:father3
					CHARACTER_2 = scope:mothers3
					#PREGNANCY_CHANCE = carn_sex_pregnancy_chance
					C1_PREGNANCY_CHANCE = 12
					C2_PREGNANCY_CHANCE = 12
					STRESS_EFFECTS = no
					DRAMA = yes
				}
			carn_rape_effect = {
				RAPIST = scope:father3
				VICTIM = scope:mothers3
				TRIGGER_SEX_SCENE = no
				STRESS_EFFECTS = no
			}}

			}
		}
	}
}


mye.0014 = {
	hidden = yes

	immediate = {
		if = {
			limit = {
				is_male = yes
			}
			every_relation = {
				type = rival
				limit = {
				is_female = yes
				OR = {
				has_trait = beauty_good_1
				has_trait = beauty_good_2
				has_trait = beauty_good_3
				has_trait = beauty_good_4
				}
			 }
				add_to_list = potential_sexed_guests1
			}
			every_relation = {
				type = rival
				limit = { is_male = yes}
				add_to_list = potential_sexed_guests2
			}
			save_scope_as = father4
			
			every_in_list = {
				list = potential_sexed_guests2
				every_consort = {
					limit = {
					is_female = yes
					age >= 12
					OR = {
					has_trait = beauty_good_1
					has_trait = beauty_good_2
					has_trait = beauty_good_3
					has_trait = beauty_good_4
					}
				 }
					add_to_temporary_list = potential_sexed_guests3
				}
				
				every_close_or_extended_family_member = {
					limit = {
					is_female = yes
					age >= 12
					OR = {
					has_trait = beauty_good_1
					has_trait = beauty_good_2
					has_trait = beauty_good_3
					has_trait = beauty_good_4
					}
				 }
					add_to_temporary_list = potential_sexed_guests3
				}
}
			every_in_list = {
				list = potential_sexed_guests1
				save_scope_as = mothers5
				show_as_tooltip = {
				carn_had_sex_with_effect = {
					CHARACTER_1 = scope:father4
					CHARACTER_2 = scope:mothers5
					#PREGNANCY_CHANCE = carn_sex_pregnancy_chance
					C1_PREGNANCY_CHANCE = 40
					C2_PREGNANCY_CHANCE = 40
					STRESS_EFFECTS = no
					DRAMA = yes
				}}
			}
			
			every_in_list = {
				list = potential_sexed_guests3
				save_scope_as = mothers4
				show_as_tooltip = {
				carn_had_sex_with_effect = {
					CHARACTER_1 = scope:father4
					CHARACTER_2 = scope:mothers4
					#PREGNANCY_CHANCE = carn_sex_pregnancy_chance
					C1_PREGNANCY_CHANCE = 40
					C2_PREGNANCY_CHANCE = 40
					STRESS_EFFECTS = no
					DRAMA = yes
				}}
			}
		}
	}
}





mye.0015 = {
	hidden = yes

	immediate = {
		if = {
			limit = {
				is_male = yes
			}
			every_consort = {
				limit = { is_female = yes }
				add_to_list = sexed_consort
			}
			save_scope_as = father15
			every_in_list = {
				list = sexed_consort
				save_scope_as = mothers15
				show_as_tooltip = {
				carn_had_sex_with_effect = {
					CHARACTER_1 = scope:father15
					CHARACTER_2 = scope:mothers15
					#PREGNANCY_CHANCE = carn_sex_pregnancy_chance
					C1_PREGNANCY_CHANCE = pregnancy_chance
					C2_PREGNANCY_CHANCE = pregnancy_chance
					STRESS_EFFECTS = no
					DRAMA = yes
				}}
			}
		}
	}
}

